Optimal. Leaf size=100 \[ -\frac {(b c+a d) \sqrt {c+d x^2}}{b^2 d^2}+\frac {\left (c+d x^2\right )^{3/2}}{3 b d^2}-\frac {a^2 \tanh ^{-1}\left (\frac {\sqrt {b} \sqrt {c+d x^2}}{\sqrt {b c-a d}}\right )}{b^{5/2} \sqrt {b c-a d}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.08, antiderivative size = 100, normalized size of antiderivative = 1.00, number of steps
used = 5, number of rules used = 4, integrand size = 24, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.167, Rules used = {457, 90, 65,
214} \begin {gather*} -\frac {a^2 \tanh ^{-1}\left (\frac {\sqrt {b} \sqrt {c+d x^2}}{\sqrt {b c-a d}}\right )}{b^{5/2} \sqrt {b c-a d}}-\frac {\sqrt {c+d x^2} (a d+b c)}{b^2 d^2}+\frac {\left (c+d x^2\right )^{3/2}}{3 b d^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 65
Rule 90
Rule 214
Rule 457
Rubi steps
\begin {align*} \int \frac {x^5}{\left (a+b x^2\right ) \sqrt {c+d x^2}} \, dx &=\frac {1}{2} \text {Subst}\left (\int \frac {x^2}{(a+b x) \sqrt {c+d x}} \, dx,x,x^2\right )\\ &=\frac {1}{2} \text {Subst}\left (\int \left (\frac {-b c-a d}{b^2 d \sqrt {c+d x}}+\frac {a^2}{b^2 (a+b x) \sqrt {c+d x}}+\frac {\sqrt {c+d x}}{b d}\right ) \, dx,x,x^2\right )\\ &=-\frac {(b c+a d) \sqrt {c+d x^2}}{b^2 d^2}+\frac {\left (c+d x^2\right )^{3/2}}{3 b d^2}+\frac {a^2 \text {Subst}\left (\int \frac {1}{(a+b x) \sqrt {c+d x}} \, dx,x,x^2\right )}{2 b^2}\\ &=-\frac {(b c+a d) \sqrt {c+d x^2}}{b^2 d^2}+\frac {\left (c+d x^2\right )^{3/2}}{3 b d^2}+\frac {a^2 \text {Subst}\left (\int \frac {1}{a-\frac {b c}{d}+\frac {b x^2}{d}} \, dx,x,\sqrt {c+d x^2}\right )}{b^2 d}\\ &=-\frac {(b c+a d) \sqrt {c+d x^2}}{b^2 d^2}+\frac {\left (c+d x^2\right )^{3/2}}{3 b d^2}-\frac {a^2 \tanh ^{-1}\left (\frac {\sqrt {b} \sqrt {c+d x^2}}{\sqrt {b c-a d}}\right )}{b^{5/2} \sqrt {b c-a d}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.18, size = 88, normalized size = 0.88 \begin {gather*} \frac {\sqrt {c+d x^2} \left (-2 b c-3 a d+b d x^2\right )}{3 b^2 d^2}+\frac {a^2 \tan ^{-1}\left (\frac {\sqrt {b} \sqrt {c+d x^2}}{\sqrt {-b c+a d}}\right )}{b^{5/2} \sqrt {-b c+a d}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(360\) vs.
\(2(84)=168\).
time = 0.10, size = 361, normalized size = 3.61
method | result | size |
risch | \(-\frac {\left (-b d \,x^{2}+3 a d +2 b c \right ) \sqrt {d \,x^{2}+c}}{3 d^{2} b^{2}}-\frac {a^{2} \ln \left (\frac {-\frac {2 \left (a d -b c \right )}{b}+\frac {2 d \sqrt {-a b}\, \left (x -\frac {\sqrt {-a b}}{b}\right )}{b}+2 \sqrt {-\frac {a d -b c}{b}}\, \sqrt {d \left (x -\frac {\sqrt {-a b}}{b}\right )^{2}+\frac {2 d \sqrt {-a b}\, \left (x -\frac {\sqrt {-a b}}{b}\right )}{b}-\frac {a d -b c}{b}}}{x -\frac {\sqrt {-a b}}{b}}\right )}{2 b^{3} \sqrt {-\frac {a d -b c}{b}}}-\frac {a^{2} \ln \left (\frac {-\frac {2 \left (a d -b c \right )}{b}-\frac {2 d \sqrt {-a b}\, \left (x +\frac {\sqrt {-a b}}{b}\right )}{b}+2 \sqrt {-\frac {a d -b c}{b}}\, \sqrt {d \left (x +\frac {\sqrt {-a b}}{b}\right )^{2}-\frac {2 d \sqrt {-a b}\, \left (x +\frac {\sqrt {-a b}}{b}\right )}{b}-\frac {a d -b c}{b}}}{x +\frac {\sqrt {-a b}}{b}}\right )}{2 b^{3} \sqrt {-\frac {a d -b c}{b}}}\) | \(339\) |
default | \(\frac {\frac {x^{2} \sqrt {d \,x^{2}+c}}{3 d}-\frac {2 c \sqrt {d \,x^{2}+c}}{3 d^{2}}}{b}-\frac {a \sqrt {d \,x^{2}+c}}{b^{2} d}-\frac {a^{2} \ln \left (\frac {-\frac {2 \left (a d -b c \right )}{b}+\frac {2 d \sqrt {-a b}\, \left (x -\frac {\sqrt {-a b}}{b}\right )}{b}+2 \sqrt {-\frac {a d -b c}{b}}\, \sqrt {d \left (x -\frac {\sqrt {-a b}}{b}\right )^{2}+\frac {2 d \sqrt {-a b}\, \left (x -\frac {\sqrt {-a b}}{b}\right )}{b}-\frac {a d -b c}{b}}}{x -\frac {\sqrt {-a b}}{b}}\right )}{2 b^{3} \sqrt {-\frac {a d -b c}{b}}}-\frac {a^{2} \ln \left (\frac {-\frac {2 \left (a d -b c \right )}{b}-\frac {2 d \sqrt {-a b}\, \left (x +\frac {\sqrt {-a b}}{b}\right )}{b}+2 \sqrt {-\frac {a d -b c}{b}}\, \sqrt {d \left (x +\frac {\sqrt {-a b}}{b}\right )^{2}-\frac {2 d \sqrt {-a b}\, \left (x +\frac {\sqrt {-a b}}{b}\right )}{b}-\frac {a d -b c}{b}}}{x +\frac {\sqrt {-a b}}{b}}\right )}{2 b^{3} \sqrt {-\frac {a d -b c}{b}}}\) | \(361\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: ValueError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 175 vs.
\(2 (84) = 168\).
time = 1.10, size = 390, normalized size = 3.90 \begin {gather*} \left [\frac {3 \, \sqrt {b^{2} c - a b d} a^{2} d^{2} \log \left (\frac {b^{2} d^{2} x^{4} + 8 \, b^{2} c^{2} - 8 \, a b c d + a^{2} d^{2} + 2 \, {\left (4 \, b^{2} c d - 3 \, a b d^{2}\right )} x^{2} - 4 \, {\left (b d x^{2} + 2 \, b c - a d\right )} \sqrt {b^{2} c - a b d} \sqrt {d x^{2} + c}}{b^{2} x^{4} + 2 \, a b x^{2} + a^{2}}\right ) - 4 \, {\left (2 \, b^{3} c^{2} + a b^{2} c d - 3 \, a^{2} b d^{2} - {\left (b^{3} c d - a b^{2} d^{2}\right )} x^{2}\right )} \sqrt {d x^{2} + c}}{12 \, {\left (b^{4} c d^{2} - a b^{3} d^{3}\right )}}, -\frac {3 \, \sqrt {-b^{2} c + a b d} a^{2} d^{2} \arctan \left (-\frac {{\left (b d x^{2} + 2 \, b c - a d\right )} \sqrt {-b^{2} c + a b d} \sqrt {d x^{2} + c}}{2 \, {\left (b^{2} c^{2} - a b c d + {\left (b^{2} c d - a b d^{2}\right )} x^{2}\right )}}\right ) + 2 \, {\left (2 \, b^{3} c^{2} + a b^{2} c d - 3 \, a^{2} b d^{2} - {\left (b^{3} c d - a b^{2} d^{2}\right )} x^{2}\right )} \sqrt {d x^{2} + c}}{6 \, {\left (b^{4} c d^{2} - a b^{3} d^{3}\right )}}\right ] \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {x^{5}}{\left (a + b x^{2}\right ) \sqrt {c + d x^{2}}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.81, size = 105, normalized size = 1.05 \begin {gather*} \frac {a^{2} \arctan \left (\frac {\sqrt {d x^{2} + c} b}{\sqrt {-b^{2} c + a b d}}\right )}{\sqrt {-b^{2} c + a b d} b^{2}} + \frac {{\left (d x^{2} + c\right )}^{\frac {3}{2}} b^{2} d^{4} - 3 \, \sqrt {d x^{2} + c} b^{2} c d^{4} - 3 \, \sqrt {d x^{2} + c} a b d^{5}}{3 \, b^{3} d^{6}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.39, size = 100, normalized size = 1.00 \begin {gather*} \frac {{\left (d\,x^2+c\right )}^{3/2}}{3\,b\,d^2}-\left (\frac {2\,c}{b\,d^2}+\frac {a\,d^3-b\,c\,d^2}{b^2\,d^4}\right )\,\sqrt {d\,x^2+c}+\frac {a^2\,\mathrm {atan}\left (\frac {\sqrt {b}\,\sqrt {d\,x^2+c}}{\sqrt {a\,d-b\,c}}\right )}{b^{5/2}\,\sqrt {a\,d-b\,c}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________